import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
    name: 'timeToMinute'
})
export class TimeToMinutePipe implements PipeTransform {

    transform(value: number, args?: any): any {
        const minutes = value / 1000 / 6;
        if (minutes > 1) {
            return minutes;
        } else {
            return 1;
        }
    }

}
